package cn.com.dcsgo.ioc.depend;

/**
 * UserService2
 *
 * @author Dcsgo
 * @since 2025/2/3 12:30
 */

public class UserService2 {
    private final UserDao userDao;
    private int age;
    private String name;

    public UserService2(int age, String name, UserDao userDao) {
        this.age = age;
        this.name = name;
        this.userDao = userDao;
    }

    public void query() {
        userDao.selectOne("name: " + name + "age: " + age);
    }
}
